package com.lkd.feign;

import com.lkd.feign.fallback.OrderServiceFallbackFactory;
import com.lkd.feign.fallback.TaskServiceFallbackFactory;
import com.lkd.vo.UserWorkVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.time.LocalDateTime;

@FeignClient(value = "task-service",fallbackFactory = TaskServiceFallbackFactory.class)
public interface TaskService {
    /**
     * 获取用户工作量(工单统计)
     *
     * @param userId
     * @param start
     * @param end
     * @return
     */
    @GetMapping("/task/userWork")
    public UserWorkVO userWorkCount(@RequestParam Integer userId, @RequestParam String start, @RequestParam String end);
}
